import { http } from '@/package_dealer/utils/request.js'

enum Urls {
	storeList = 'mini/settle/store_list',
	orderList = 'mini/settle/order_list',
	payOwe = 'mini/settle/pay_owe',
	payBalance = 'mini/settle/pay_balance',
	paymentList = 'mini/settle/payment_list',
	payZq = 'mini/settle/pay_zq',
	accountList = 'mini/account/list'
}

// 门店列表
export const storeList = (params) => http.get(Urls.storeList, params)

// 门店欠款订单列表
export const orderList = (params) => http.get(Urls.orderList, params)

// 门店欠款收款
export const payOwe = (data) => http.post(Urls.payOwe, data)

// 门店预存款收款
export const payBalance = (data) => http.post(Urls.payBalance, data)

// 账期账单列表
export const paymentList = (params) => http.get(Urls.paymentList, params)

// 账期结算
export const payZq = (data) => http.post(Urls.payZq, data)

//业务员对账
export const accountList = () => http.get(Urls.accountList)